//
//  EKEvent+Extension.h
//  YSUtils
//
//  Created by edz on 2021/4/11.
//  Copyright © 2021 Apple. All rights reserved.
//

#import <EventKit/EventKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface EKEvent (Extension)
/// 事件标题
@property (nonatomic, copy, readonly) EKEvent *(^ys_title)(NSString *title);
@property (nonatomic, copy, readonly) EKEvent *(^ys_location)(NSString *location);
@property (nonatomic, copy, readonly) EKEvent *(^ys_notes)(NSString *notes);
/// 开始时间
@property (nonatomic, copy, readonly) EKEvent *(^ys_startDate)(NSDate *startDate);
/// 结束时间
@property (nonatomic, copy, readonly) EKEvent *(^ys_endDate)(NSDate *endDate);
/// 添加提醒时间
@property (nonatomic, copy, readonly) EKEvent *(^ys_addAlarm)(EKAlarm *alarm);
/// 设置时区
@property (nonatomic, copy, readonly) EKEvent *(^ys_timeZone)(NSTimeZone *timeZone);
@property (nonatomic, copy, readonly) EKEvent *(^ys_calendar)(EKCalendar *calendar);
@property (nonatomic, strong) EKEvent *(^ys_URL)(NSURL *URL);
@end

NS_ASSUME_NONNULL_END
